From Cppreference
[edit] Program termination
The following functions manage program termination and resource cleanup.
Functions
|
|
|
|
|
|
| causes abnormal program termination (without cleaning up) (function)
|
|
|
|
| causes normal program termination with cleaning up (function)
|
|
|
|
| causes normal program termination without completely cleaning up (function)
|
|
|
|
| causes normal program termination without cleaning up (function)
|
|
|
|
| registers a function to be called on exit() invocation (function)
|
|
|
|
| registers a function to be called on quick_exit invocation (function)
|
Macro constants
|
|
|
|
| indicates successful program execution (macro constant)
|
|
|
|
| indicates unsuccessful program execution (macro constant)
|
[edit] Communicating with the environment
|
|
|
| calls the host environment's command processor (function)
|
|
|
|
| access to the list of environment variables (function)
|
[edit] Signals
Several functions and macro constants for signal management are provided in <csignal> header.
Functions
|
|
|
|
| sets a signal handler for particular signal (function)
|
|
|
|
| runs the signal handler for particular signal (function)
|
Macro constants
|
|
|
|
| default signal handling (macro constant)
|
|
|
|
| signal ignored (macro constant)
|
|
|
|
| error was encountered (macro constant)
|
Signal types
|
|
|
|
| abnormal termination (macro constant)
|
|
|
|
| floating point exception (macro constant)
|
|
|
|
| invalid instruction (macro constant)
|
|
|
|
| interactive attention request sent to the program (macro constant)
|
|
|
|
| invalid memory access (macro constant)
|
|
|
|
| termination request sent to the program (macro constant)
|
[edit] Non-local jumps
Types
|
|
|
|
| execution context type (function)
|
Functions
|
|
|
|
| saves the context (function)
|
|
|
|
| jumps to specified location (function)
|